<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: product_icon_images.php 11 2013-09-21 11:43:11Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 11 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-09-21 11:43:11 +0000 (Sat, 21 Sep 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */

$a = new image_manipulation(DIR_FS_CATALOG_ORIGINAL_IMAGES . $products_image_name,PRODUCT_IMAGE_ICON_WIDTH,PRODUCT_IMAGE_ICON_HEIGHT,DIR_FS_CATALOG_ICON_IMAGES.$products_image_name,IMAGE_QUALITY,'');
$array = clear_string(PRODUCT_IMAGE_ICON_BEVEL);
if (PRODUCT_IMAGE_ICON_BEVEL != ''){
$a->bevel($array[0],$array[1],$array[2]);}

$array=clear_string(PRODUCT_IMAGE_ICON_GREYSCALE);
if (PRODUCT_IMAGE_ICON_GREYSCALE != ''){
$a->greyscale($array[0],$array[1],$array[2]);}

$array=clear_string(PRODUCT_IMAGE_ICON_ELLIPSE);
if (PRODUCT_IMAGE_ICON_ELLIPSE != ''){
$a->ellipse($array[0]);}

$array=clear_string(PRODUCT_IMAGE_ICON_ROUND_EDGES);
if (PRODUCT_IMAGE_ICON_ROUND_EDGES != ''){
$a->round_edges($array[0],$array[1],$array[2]);}

$string=str_replace("'",'',PRODUCT_IMAGE_ICON_MERGE);
$string=str_replace(')','',$string);
$string=str_replace('(',DIR_FS_CATALOG_IMAGES,$string);
$array=explode(',',$string);
//$array=clear_string();
if (PRODUCT_IMAGE_ICON_MERGE != ''){
$a->merge($array[0],$array[1],$array[2],$array[3],$array[4]);}

$array=clear_string(PRODUCT_IMAGE_ICON_FRAME);
if (PRODUCT_IMAGE_ICON_FRAME != ''){
$a->frame($array[0],$array[1],$array[2],$array[3]);}

$array=clear_string(PRODUCT_IMAGE_ICON_DROP_SHADDOW);
if (PRODUCT_IMAGE_ICON_DROP_SHADDOW != ''){
$a->drop_shadow($array[0],$array[1],$array[2]);}

$array=clear_string(PRODUCT_IMAGE_ICON_MOTION_BLUR);
if (PRODUCT_IMAGE_ICON_MOTION_BLUR != ''){
$a->motion_blur($array[0],$array[1]);}
	$a->create();
?>